﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TBlog.Web.Models;

namespace TBlog.Web.Data
{
    public interface IDbContext
    {
        int SaveChanges();
        Task<int> SaveChangesAsync();
        Database Database { get; }
        IDbSet<T> DbSet<T>() where T : BaseEntity;
    }
}
